package Test;
import java.util.Scanner;
import java.lang.StringBuilder;


public class Plalindrome {
    public static void main(String[] args){
        Scanner input=new Scanner(System.in);   //从键盘输入一个数
        StringBuilder text=new StringBuilder(input.nextLine());  //传给text
        String retext= text.toString();  //将StringBuilder类型的text转换为String类型并赋值给retext
        text.reverse();  //翻转text字符串
        int compare=retext.compareTo(text.toString());  //判断翻转前后字符串是否相等
        if(compare==0){
            System.out.println("是回文");
        }
        else System.out.println("不是回文");
    }
}
